package cn.wolfcode.gitflow.service.impl;

import cn.wolfcode.gitflow.domain.User;
import cn.wolfcode.gitflow.service.IUserService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

@Service
@Slf4j
public class UserServiceImpl implements IUserService {

    @Override
    public User login(String name, String token) {
        log.info("修改用户登录功能的bug.......");
        log.info("用户令牌为：" + token);
        return new User(name);
    }

    @Override
    public void register(String name, int age) {
        log.info("修改用户注册功能的bug......");
        log.info("用户注册信息：" + new User(name, age));
    }
}
